package com.xudu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xudu.entity.User;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * ClassName: IFileService
 * Description:
 *
 * @Author xudu
 * @Create 2024/4/21
 */
public interface IFileService extends IService<User> {

    /**
     * 上传图片接口
     * @param user
     * @return
     */
    boolean uploadPhoto(User user, MultipartFile photo);

    /**
     * 获取图片接口
     * @param user
     * @return
     */
    void downloadPhoto(User user, HttpServletResponse response);


}
